import request from '@/utils/request'

// 文件上传
export function upload(files) {
  var param = new FormData()
  console.log(files)
  for (let i = 0; i < files.length; i++) {
    param.append('files', files[i].raw)
  }
  return request({
    url: '/sys/file/upload',
    method: 'upload',
    data: param
  })
}
